package com.gzx.plugin.tjzy.modular.call.receipt.controller;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.plugin.tjzy.modular.call.receipt.bo.GzxReceiptBusinessStatisticBo;
import com.gzx.plugin.tjzy.modular.call.receipt.service.GzxReceiptBusinessStatisticService;
import com.gzx.plugin.tjzy.modular.call.receipt.vo.GzxReceiptBusinessStatisticVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.pojo.CommonResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @author xbl
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/tjzy/call/receipt/statistic")
@DS("tjzy-async")
public class GzxReceiptBusinessStatisticController {

    private final GzxReceiptBusinessStatisticService statisticService;

    /**
     * 线路接通率
     */
    @PostMapping("/callerRate")
    public CommonResult<Page<GzxReceiptBusinessStatisticVo>> callerRate(@RequestBody GzxReceiptBusinessStatisticBo bo) {
        return CommonResult.data(statisticService.callerRate(bo));
    }

}
